<%-- 
    Document   : FormJadwal
    Created on : Dec 4, 2011, 11:44:09 PM
    Author     : user
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Entities.*"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Calendar"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Tambah Jadwal Baru</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">    
    <div id="header">
        <h1>Sistem Pembantu Penjadwalan Studio Musik</h1> versi sesuatu.86
    </div>

    <div id="nav">
        <ul>
                <%Calendar calz = new GregorianCalendar();%>
            <li><a href="?action=menuUser&month=<%=calz.getTime().getMonth()+1%>&year=<%=calz.getTime().getYear()+1900%>"> Lihat Jadwal </a></li>
            <li><a href="?action=studio"> Tambah Studio</a></li>
            <li><a href="?action=logout"> Logout </a></li>
        </ul>
    </div>
    <div id="nav2">
        <%
            String url = "?action=date&bulan="+request.getParameter("bulan")+"&tanggal="+request.getParameter("tanggal");
            
        %>
        <a href="?action=menuUser">Home </a>&#187; <% out.println("<a href="+url+">Pilih Studio dan Jam </a>"); %>&#187; Input Jadwal Baru 
        
    </div>
    <br/>
    <div id="formSewa">
        <hr>
        <table width="100%">
        <form action="ControllerServlet" method="get">
            <input type="hidden" name="action" value="addJadwal">
            <tr><td colspan="2"><hr><H3>Formulir Penyewaan</H3><HR></td>
                <td></td>
            </tr>
            <tr>
                <td colspan="2">
                    
                    <%
                    if (request.getAttribute("error") != null) {
                    %>
                    Nama Yang anda inputkan salah!!! Ulangin donk..!!
                    <%
            }
                    %>
                    
                </td>
            </tr>
            <tr>  <td>Nama Penyewa : </td>      
                <td> <input type="text" name="namaPenyewa" class="input" id="input" size="25" maxlength="15"> *</td>    
            </tr>
            <tr>  <td>No Telpon Penyewa : </td>      
                <td> <input type="text" name="noTelpPenyewa" class="input" id="input" size="25" maxlength="12" > *</td>    
            </tr>
            
            
            <input type="hidden" name="status_langganan" value="active" >
            <input type="hidden" name="jamMulai" value="<%=request.getParameter("jamMulai")%>" >
            <input type="hidden" name="jamSelesai" value="<%=request.getParameter("jamSelesai")%>" >
            <input type="hidden" name="bulan" value="<%=request.getParameter("bulan")%>" >
            <input type="hidden" name="tanggal" value="<%=request.getParameter("tanggal")%>">
            <input type="hidden" name="studio" value="<%=request.getParameter("studio")%>">
            <input type="hidden" name="tahun" value="<%=request.getParameter("tahun")%>">
            <input type="hidden" name="idUser" value="<%= ((User) session.getAttribute("userOnline")).getId_user() %>">
            
            <tr>
                <td></td>
                <td><input type="submit" value="Submit"> <input type="reset" value="Reset"></td>
            </tr>
        </form>
    </div>
</div>

</body>
</html>
